public class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
    }
//    Override
    public void eat(){
        System.out.println(name + "吃骨头-------");
    }
}

//子类必须对父类的方法进行重写

